package com.miyu.system.pojo.system;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;

/**
 * 菜单表;
 * @author : miyu
 * @date : 2022-9-30
 */
@ApiModel(value = "菜单表",description = "")
@Data
@Entity
@Table(name="sys_menu")
public class SysMenu implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @ApiModelProperty(name = "主键",notes = "")
    @Column(name = "menu_id", nullable = false, length =32 )
    private String menuId ;
    /** 名称 */
    @ApiModelProperty(name = "名称",notes = "")
    @Column(name = "menu_name", nullable = true, length =90 )
    private String menuName ;
    /** 访问地址 */
    @ApiModelProperty(name = "访问地址",notes = "")
    @Column(name = "menu_component", nullable = true, length =200 )
    private String menuComponent ;
    /** 类别 */
    @ApiModelProperty(name = "类别",notes = "")
    @Column(name = "menu_mod", nullable = true, length =10 )
    private String menuMod ;
    /** 是否隐藏 */
    @ApiModelProperty(name = "是否隐藏",notes = "")
    @Column(name = "menu_hidden", nullable = true, length =1 )
    private String menuHidden = "0" ;
    /** 父级节点 */
    @ApiModelProperty(name = "父级节点",notes = "")
    @Column(name = "parent_id", nullable = true, length =32 )
    private String parentId ;
    /** 文件路径 */
    @ApiModelProperty(name = "文件路径",notes = "")
    @Column(name = "path_all", nullable = true, length =90 )
    private String pathAll ;
    /** 所在区域 */
    @ApiModelProperty(name = "所在区域",notes = "")
    @Column(name = "space_id", nullable = true, length =32 )
    private String spaceId ;
    /** 是否末级 */
    @ApiModelProperty(name = "是否末级",notes = "")
    @Column(name = "is_last", nullable = true, length =1 )
    private String isLast = "1" ;
    /** 显示图标 */
    @ApiModelProperty(name = "显示图标",notes = "")
    @Column(name = "menu_icon", nullable = true, length =90 )
    private String menuIcon ;
    /** 排序 */
    @ApiModelProperty(name = "排序",notes = "")
    @Column(name = "order_num", nullable = true, length =10 )
    private Integer orderNum ;
    /** 类型;0：目录 1：菜单 2：按钮 */
    @ApiModelProperty(name = "类型",notes = "0：目录 1：菜单 2：按钮")
    @Column(name = "menu_type", nullable = true, length =1 )
    private String menuType = "1" ;
    /** 权限标示 */
    @ApiModelProperty(name = "权限标示",notes = "")
    @Column(name = "menu_authority", nullable = true, length =255 )
    private String menuAuthority ;
    /** 是否停用 */
    @ApiModelProperty(name = "是否停用",notes = "")
    @Column(name = "is_stop", nullable = true, length =1 )
    private String isStop = "0" ;
    /** 说明 */
    @ApiModelProperty(name = "说明",notes = "")
    @Column(name = "mome", nullable = true, length =100 )
    private String mome ;
    /** 是否系统;内置不可删除 */
    @ApiModelProperty(name = "是否系统",notes = "内置不可删除")
    @Column(name = "is_sys", nullable = true, length =1 )
    private String isSys = "0" ;
    /** 是否缓存 */
    @ApiModelProperty(name = "是否缓存",notes = "")
    @Column(name = "is_cache", nullable = true, length =1 )
    private String isCache = "0" ;
    /** 菜单传递参数 */
    @ApiModelProperty(name = "菜单参数",notes = "菜单传递参数")
    @Column(name = "menu_param", nullable = true, length =200 )
    private String menuParam ;
}